package demo8;

public class Test {
    public static void main(String[] args) {
        IG ig = new teacher();
        IH ih = new teacher();
    }
}

interface IH{
    void hi();
}
interface IG extends IH{
}

class teacher implements IG{
    @Override
    public void hi() {
        System.out.println("hihihihi");
    }
}
